package create_pattern.factory.factory_method;

import lombok.extern.slf4j.Slf4j;

/**
 * @author fly
 * @data 2022-03-29
 */
@Slf4j
public class Test {
    public static void main(String[] args) {
        //读取GIF格式
        ReadFactory factory = new GifFactory();
        Picture picture = factory.createPicture();
        picture.read();
    }
}